home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software of the Month Club 1996 June
/
Software of the Month Club 1996 June.iso
/
pc
/
dos
/
dtp
/
display
/
drvsrc
/
vesa
/
makefile
< prev
next >
Wrap
Makefile
|
1995-11-17
|
852b
|
61 lines
CC= tcc
CCOPT= -O -G -Z -d -w -a -k-
DRV= vesa113.vdr
TST= vesadrv.exe
RM=rm -f
#
# targets
#
all: $(DRV) #$(TST)
clean:
$(RM) *.map
$(RM) *.dmp
$(RM) *.exe
$(RM) *.s
cleanall: clean
$(RM) *.vdr
$(RM) *.grd
$(RM) *.grn
$(RM) *.obj
$(RM) *.com
#
# This is for debugging
#
.c.s:
$(CC) -S $(CCOPT) $*.c
copy $*.asm $*.s
$(RM) $*.asm
#
# Rules:
#
.asm.obj:
tasm /mx $*.asm
.c.vdr:
$(CC) -c -ms! $(CCOPT) $*.c
tlink /i /s /m /c vdrhead.obj $*.obj, $*.out, $*.dmp
exe2bin $*.out $*.vdr
$(RM) $*.out
$(RM) $*.obj
.vdr.exe:
tcc -ms -v $(CCOPT) -DDRIVER="$*.c" -e$* -M vdrtest.c
del vdrtest.obj
#
# dependencies:
#
vdrhead.obj: grdriver.inc
vesa112.vdr: vdrhead.obj vdr.h pieces/vesainfo.c paging/vesa.c pieces/textfont.c pieces/vdrmain.c
vesadrv.exe: vdrtest.c